package com.example.demo.jpa;

import com.example.demo.entity.RoleEntity;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author rqian
 */
public interface RoleJpa extends JpaRepository<RoleEntity, Long> {
    /**
     * find role entity by role name.
     *
     * @param roleName
     *         role name.
     * @return role entity.
     */
    RoleEntity findRoleEntityByRoleName(String roleName);
}
